package com.sun.service.impl;

import com.sun.dao.UserDao;
import com.sun.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author SunRui
 * @description TODO
 * @date 2024/9/11 8:56
 */
@Service
public class UserServiceImpl implements UserService {

    @Qualifier("userDao1Impl")
    @Autowired
    UserDao userDao;

    @Override
    public void getUsers() {
        System.out.println("-------------------------------");
        System.out.println("UserService");
        userDao.getUsers();
    }

    @Override
    public void upUsers() {
        System.out.println("-------------------------------");
        System.out.println("UserService");
        userDao.upUsers();
    }
}
